﻿////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// <copyright>Copyright 2008-2011 Andreas Huber Doenni</copyright>
// Distributed under the Microsoft Public License (Ms-PL).
// See accompanying file License.txt or copy at http://mews.codeplex.com/license.
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

namespace Mews.Net.Nntp
{
    using System.IO;

    /// <summary>Represents the response to a <see cref="ListActiveCommand"/>.</summary>
    /// <threadsafety static="true" instance="false"/>
    public sealed class ListActiveResponse :
        MultilineResponse<ListActiveResponse, ActiveGroupInfo, string, long, long, string>
    {
        internal ListActiveResponse(Stream subsequentLines) : base(subsequentLines)
        {
        }

        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////

        /// <summary>See <see cref="MultilineResponseBase{T, U, V, W, X, Y}.CreateResponseLine(V, W, X, Y)"/>.</summary>
        protected sealed override ActiveGroupInfo CreateResponseLine(string p1, long p2, long p3, string p4)
        {
            return new ActiveGroupInfo(p1, p2, p3, p4);
        }
    }
}
